system/reset-configuration run-after-reset=

R1-13
/tool/romon/set enabled=yes
system/identity/ set name=R1-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=1.1.1.1 interface=lo network=1.1.1.1
/interface vlan/add interface=ether0 name="Management 1013" vlan-id=1013
ip/address/add address=10.13.15.1/24 interface="Management 1013" network=10.13.15.0
/interface vlan/add interface=ether0 name=vlan10 vlan-id=10
ip/address/add address=10.13.0.1/24 interface=vlan10
/interface vlan/add interface=ether0 name=vlan20 vlan-id=20
ip/address/add address=10.13.13.1/24 interface=vlan20
ip/dhcp-client/add interface=ether2 add-default-route=no
ip/dhcp-client/add interface=ether3 add-default-route=no
/ip/firewall/nat/add action=masquerade chain=srcnat out-interface=ether2
/ip/firewall/nat/add action=masquerade chain=srcnat out-interface=ether3
/ip/pool/add name=pool_vlan10 ranges=10.13.0.2-10.13.0.254
/ip/pool/add name=pool_vlan20 ranges=10.13.13.2-10.13.13.254
/ip/pool/add name=pool_Management_vlan ranges=10.13.15.2-10.13.15.254
/ip/dhcp-server/add address-pool=pool_vlan10 interface=vlan10 name=DHCP1
/ip/dhcp-server/add address-pool=pool_vlan20 interface=vlan20 name=DHCP2
/ip/dhcp-server/add address-pool=pool_Management_vlan interface="Management 1013" name=DHCP3
/ip/dhcp-server/network/add address=10.13.0.0/24 dns-server=10.13.15.248 gateway=10.13.0.1
/ip/dhcp-server/network/add address=10.13.13.0/24 dhcp-option-set=DNS dns-server=10.13.15.248 gateway=10.13.13.1
/ip/dhcp-server/network/add address=10.13.15.0/24 dhcp-option-set=DNS dns-server=10.13.15.248 gateway=10.13.15.1
/ip/dhcp-server/lease/add address=10.13.13.254 client-id=1:0:50:79:66:68:5 mac-address=00:50:79:66:68:05 server=DHCP2
/ip/dhcp-server/lease/add address=10.13.0.253 client-id=1:0:50:79:66:68:2 mac-address=00:50:79:66:68:02 server=DHCP1
/ip/dhcp-server/lease/add address=10.13.15.249 client-id=1:c:1b:4:b2:0:0 mac-address=0C:1B:04:B2:00:00 server=DHCP3
/ip/dhcp-server/lease/add address=10.13.15.248 client-id=1:c:5b:97:5e:0:0 mac-address=0C:5B:97:5E:00:00 server=DHCP3
/ip/route/add dst-address=200.13.2.10/32 gateway=200.13.0.1 distance=1 check-gateway=ping
/ip/route/add dst-address=200.13.3.10/32 gateway=200.13.4.1 distance=2 check-gateway=ping
/ip/route/add dst-address=0.0.0.0/0 gateway=10.13.9.1 check-gateway=ping distance=1
/ip/route/add dst-address=0.0.0.0/0 gateway=10.13.10.1 distance=2 check-gateway=ping
/interface/gre/add local-address=200.13.0.10 name=gre-tunnel1 remote-address=200.13.2.10
/interface/gre/add local-address=200.13.4.10 name=gre-tunnel2 remote-address=200.13.3.10
/ip/address/add address=10.13.9.2/24 interface=gre-tunnel1 network=10.13.9.0
/ip/address/add address=10.13.10.2/24 interface=gre-tunnel2 network=10.13.10.0
/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/routing/ospf/interface-template/add area=ospf-area-1 interfaces=gre-tunnel1,vlan10,vlan20,gre-tunnel2,Management 1013
/ip/firewall/filter/add action=drop chain=forward in-interface=vlan10 out-interface=vlan20


R2-13
/tool/romon/set enabled=yes
system/identity/ set name=R2-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=10.13.2.2/24 interface=ether0
ip/address/add address=2.2.2.2/32 interface=lo
/interface/bridge/add name=bridge1
/interface/vlan/add interface=bridge1 name=Menegement_vlan1013 vlan-id=1013
/interface/vlan/add interface=bridge1 name=vlan10 vlan-id=10
/interface/vlan/add interface=bridge1 name=vlan20 vlan-id=20
/interface/vrrp/add interface=vlan10 name=vrrp1 priority=10
/interface/vrrp/add interface=vlan20 name=vrrp2
/interface/vrrp/add interface=Menegement_vlan1013 name=vrrp3

/ip/pool/add name=pool_vlan1013 ranges=10.13.18.2-10.13.18.254
/ip/pool/add name=pool_vlan10 ranges=10.13.5.6-10.13.5.254
/ip/pool/add name=pool_vlan20 ranges=10.13.17.2-10.13.17.254
/ip/dhcp-server/add address-pool=pool_vlan1013 interface=vrrp3 name=DHCP_vlan1013
/ip/dhcp-server/add address-pool=pool_vlan10 interface=vrrp1 name=DHCP_vlan10
/ip/dhcp-server/add address-pool=pool_vlan20 interface=vrrp2 name=DHCP_vlan20

/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/interface/bridge/port/add bridge=bridge1 interface=ether1
/interface/bridge/port/add bridge=bridge1 interface=ether3
/ip/dhcp-client/add interface=ether0
/routing/ospf/interface-template/add area=ospf-area-1 interfaces=ether0



R3-13
/tool/romon/set enabled=yes
system/identity/ set name=R3-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=10.13.4.2/24 interface=ether0
ip/address/add address=3.3.3.3/32 interface=lo
/interface/bridge/add name=bridge1
/interface/vrrp/add interface=bridge1 name=vrrp1 priority=150
/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/interface/bridge/port/add bridge=bridge1 interface=ether1
/interface/bridge/port/add bridge=bridge1 interface=ether3
ip/address/add address=10.13.5.2/24 interface=bridge1
ip/address/add address=10.13.5.3/24 interface=vrrp1
/ip/dhcp-client/add interface=ether0
/routing/ospf/interface-template/add area=ospf-area-1 interfaces=ether0


R4-13
/tool/romon/set enabled=yes
system/identity/ set name=R4-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=200.13.0.1/24 interface=ether0
ip/address/add address=10.13.1.1/24 interface=ether1
ip/address/add address=100.13.1.2/24 interface=ether3
ip/address/add address=100.13.15.2/24 interface=ether2
ip/address/add address=4.4.4.4 interface=lo
ip/route/add dst-address=10.10.10.10 gateway=100.13.1.1 comment=1
ip/route/add dst-address=10.10.10.10 gateway=100.13.15.1 comment=15
routing/isis/instance/add name=provider1 areas=49.0001 system-id=0000.0000.0004
routing/isis/interface-template/add levels=l1 instance=provider1 interfaces=ether1,lo
ip/firewall/address-list/add list=bgp_list address=200.13.0.0/24
routing/bgp/template/ add name=local13 as=113 router-id=4.4.4.4 address-families=ip
routing/bgp/connection/ add name=R5-13 templates=local13 remote.address=5.5.5.5 remote.as=113 local.address=4.4.4.4 local.role=ibgp-rr-client nexthop-choice=force-self output.network=bgp_list
routing/bgp/connection/ add name=R10-13_1 templates=local13 remote.address=10.10.10.10 remote.as=313 local.address=4.4.4.4 local.role=ebgp multihop=yes
routing/bgp/connection/ add name=R10-13_2 templates=local13 remote.address=10.10.10.10 remote.as=313 local.address=4.4.4.4 local.role=ebgp multihop=yes
ip/dhcp-server/ add name=DHCP1 interface=ether0
ip/dhcp-server/network/ add address=200.13.0.0/24 gateway=200.13.0.1
ip/dhcp-server/lease/add address=200.13.0.10 mac-address=0C:67:E5:21:00:02
tool/netwatch/add name=toR10 host=100.13.1.1 src-address=100.13.1.2  type=icmp up-script={ip/route/enable [find comment="1"]
ip/route/disable [find comment="15"]} down-script={ip/route/enable [find comment="15"]
ip/route/disable [find comment="1"]}




R5-13
/tool/romon/set enabled=yes
system/identity/ set name=R5-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=100.13.2.2/24 interface=ether2
ip/address/add address=20.13.1.1/24 interface=ether1
ip/address/add address=10.13.1.2/24 interface=ether3
ip address/add address=200.13.1.1/24 interface=ether0
ip/address/add address=5.5.5.5 interface=lo
ip/route/add dst-address=11.11.11.11 gateway=100.13.2.1
routing/isis/instance/add name=provider1 areas=49.0001 system-id=0000.0000.0005
routing/isis/interface-template/add levels=l1 instance=provider1 interfaces=ether1,ether3,lo
ip/firewall/address-list/add list=bgp_list address=200.13.1.0/24
routing/bgp/template/ add name=local13 as=113 router-id=5.5.5.5 address-families=ip output.network=bgp_list
routing/bgp/connection/ add name=R4-13 templates=local13 remote.address=4.4.4.4 remote.as=113 local.address=5.5.5.5 local.role=ibgp-rr
routing/bgp/connection/ add name=R6-13 templates=local13 remote.address=6.6.6.6 remote.as=113 local.address=5.5.5.5 local.role=ibgp-rr
routing/bgp/connection/ add name=R11-13 templates=local13 remote.address=11.11.11.11 remote.as=313 local.address=5.5.5.5 local.role=ebgp multihop=yes
ip/pool/add name=pool ranges=200.13.1.0-200.13.1.254
ip/dhcp-server/ add name=DHCP1 address-pool=pool interface=ether0
ip/dhcp-server/network/ add address=200.13.1.0/24 gateway=200.13.1.1
ip/dhcp-server/lease/add address=200.13.1.10 mac-address=0C:CF:14:27:00:01

R6-13
/tool/romon/set enabled=yes
system/identity/ set name=R6-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=100.13.3.2/24 interface=ether2
ip/address/add address=20.13.1.2/24 interface=ether3
ip/address/add address=6.6.6.6 interface=lo
ip/route/add dst-address=12.12.12.12 gateway=100.13.3.1
routing/isis/instance/add name=provider1 areas=49.0001 system-id=0000.0000.0006
routing/isis/interface-template/add levels=l1 instance=provider1 interfaces=ether3,lo
ip/firewall/address-list/add list=bgp_list address=200.13.2.0/24
routing/bgp/template/ add name=local13 as=113 router-id=6.6.6.6 address-families=ip
routing/bgp/connection/add name=R5-13 templates=local13 remote.address=5.5.5.5 remote.as=113 local.address=6.6.6.6 local.role=ibgp-rr-client nexthop-choice=force-self output.network=bgp_list
routing/bgp/connection/ add name=R12-13 templates=local13 remote.address=12.12.12.12 remote.as=313 local.address=6.6.6.6 local.role=ebgp multihop=yes
ip/address/add address=200.13.2.1/24 interface=ether0
ip/dhcp-server/ add name=DHCP1 interface=ether0
ip/dhcp-server/network/ add address=200.13.2.0/24 gateway=200.13.2.1
ip/dhcp-server/lease/add address=200.13.2.10 mac-address=0C:64:B7:99:00:00


R7-13
/tool/romon/set enabled=yes
system/identity/ set name=R7-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=100.13.4.2/24 interface=ether3
ip/address/add address=30.13.1.1/24 interface=ether2
ip/address/add address=200.13.3.1/24 interface=ether0
ip/address/add address=7.7.7.7 interface=lo
ip/route/add dst-address=14.14.14.14 gateway=100.13.4.1
routing/isis/instance/add name=provider2 areas=49.0002 system-id=0000.0000.0007
routing/isis/interface-template/add levels=l1 instance=provider2 interfaces=ether2,lo
ip/dhcp-server/ add name=DHCP1 interface=ether0
ip/dhcp-server/network/ add address=200.13.3.0/24 gateway=200.13.3.1
ip/firewall/address-list/add list=bgp_list address=200.13.3.0/24
routing/bgp/template/ add name=local13 as=213 router-id=7.7.7.7 address-families=ip
routing/bgp/connection/ add name=R8-13 templates=local13 remote.address=8.8.8.8 remote.as=213 local.address=7.7.7.7 local.role=ibgp-rr-client nexthop-choice=force-self output.network=bgp_list
routing/bgp/connection/ add name=R14-13 templates=local13 remote.address=14.14.14.14 remote.as=313 local.address=7.7.7.7 local.role=ebgp multihop=yes
ip/dhcp-server/lease/add address=200.13.3.10 mac-address=0C:81:13:C8:00:00


R8-13
/tool/romon/set enabled=yes
system/identity/ set name=R8-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.1.2/24 interface=ether1
ip/address/add address=40.13.1.1/24 interface=ether2
ip/address/add address=100.13.5.2/24 interface=ether3
ip/address/add address=200.13.4.1/24 interface=ether0
ip/address/add address=8.8.8.8 interface=lo
ip/route/add dst-address=15.15.15.15 gateway=100.13.5.1
routing/isis/instance/add name=provider2 areas=49.0002 system-id=0000.0000.0008
routing/isis/interface-template/add levels=l1 instance=provider2 interfaces=ether1,ether2,lo
ip/dhcp-server/ add name=DHCP1 interface=ether0
ip/dhcp-server/network/ add address=200.13.4.0/24 gateway=200.13.4.1
ip/firewall/address-list/add list=bgp_list address=200.13.4.0/24
routing/bgp/template/add as=213 router-id=8.8.8.8 name=local13 address-families=ip output.network=bgp_list
routing/bgp/connection/ add name=R7-13 templates=local13 remote.address=7.7.7.7 remote.as=213 local.address=8.8.8.8 local.role=ibgp-rr
routing/bgp/connection/ add name=R9-13 templates=local13 remote.address=9.9.9.9 remote.as=213 local.address=8.8.8.8 local.role=ibgp-rr
routing/bgp/connection/ add name=R15-13 templates=local13 remote.address=15.15.15.15 remote.as=313 local.address=8.8.8.8 local.role=ebgp multihop=yes
ip/dhcp-server/lease/add address=200.13.4.10 mac-address=0C:67:E5:21:00:03


R9-13
/tool/romon/set enabled=yes
system/identity/ set name=R9-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=100.13.6.2/24 interface=ether2
ip/address/add address=200.13.5.1/24 interface=ether0
ip/address/add address=40.13.1.2/24 interface=ether1
ip/address/add address=9.9.9.9 interface=lo
ip/route/add dst-address=16.16.16.16 gateway=100.13.6.1
routing/isis/instance/add name=provider2 areas=49.0002 system-id=0000.0000.0009
routing/isis/interface-template/add levels=l1 instance=provider2 interfaces=ether1,lo
ip/dhcp-server/ add name=DHCP1 interface=ether0
ip/dhcp-server/network/ add address=200.13.5.0/24 gateway=200.13.5.1
ip/dhcp-server/lease/add address=200.13.5.10 mac-address=0C:CF:14:27:00:00
ip/firewall/address-list/add list=bgp_list address=200.13.5.0/24
routing/bgp/template/add as=213 router-id=9.9.9.9 name=local13 address-families=ip
routing/bgp/connection/ add name=R8-13 templates=local13 remote.address=8.8.8.8 remote.as=213 local.address=9.9.9.9 local.role=ibgp-rr-client nexthop-choice=force-self output.network=bgp_list
routing/bgp/connection/ add name=R16-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=9.9.9.9 local.role=ebgp multihop=yes



R10-13
/tool/romon/set enabled=yes
system/identity/ set name=R10-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=100.13.1.1/24 interface=ether2
ip/address/add address=100.13.15.1/24 interface=ether0
ip/address/add address=30.13.1.1/24 interface=ether1
ip/address/add address=10.10.10.10/32 interface=lo
ip/route/add dst-address=4.4.4.4 gateway=100.13.1.2 comment=1
ip/route/add dst-address=4.4.4.4 gateway=100.13.15.2 comment=15
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0010
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,lo
routing/bgp/template/ add name=local13 as=313 router-id=10.10.10.10 address-families=ip
routing/bgp/connection/ add name=R4-13_1 templates=local13 remote.address=4.4.4.4 remote.as=113 local.address=10.10.10.10 local.role=ebgp multihop=yes output.default-originate=always
routing/bgp/connection/ add name=R4-13_2 templates=local13 remote.address=4.4.4.4 remote.as=113 local.address=10.10.10.10 local.role=ebgp multihop=yes output.default-originate=always
routing/bgp/connection/ add name=R13-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=10.10.10.10 local.role=ibgp-rr-client nexthop-choice=force-self
tool/netwatch/add name=toR4 host=100.13.1.2 src-address=100.13.1.1 type=icmp up-script={ip/route/enable [find comment="1"] 
ip/route/disable [find comment="15"]} down-script={ip/route/enable [find comment="15"] 
ip/route/disable [find comment="1"]}


R11-13
/tool/romon/set enabled=yes
system/identity/ set name=R11-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.1.2/24 interface=ether2
ip/address/add address=100.13.2.1/24 interface=ether0
ip/address/add address=30.13.2.1/24 interface=ether1
ip/address/add address=11.11.11.11 interface=lo
ip/route/add dst-address=5.5.5.5 gateway=100.13.2.2
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0011
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,ether2,lo
routing/bgp/template/ add as=313 router-id=11.11.11.11 name=local13 address-families=ip
routing/bgp/connection/add name=R5-13 templates=local13 remote.address=5.5.5.5 remote.as=113 local.address=11.11.11.11 local.role=ebgp multihop=yes output.default-originate=always
routing/bgp/connection/ add name=R13-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=11.11.11.11 local.role=ibgp-rr-client nexthop-choice=force-self



R12-13
/tool/romon/set enabled=yes
system/identity/ set name=R12-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.2.2/24 interface=ether2
ip/address/add address=100.13.3.1/24 interface=ether0
ip/address/add address=30.13.3.1/24 interface=ether1
ip/address/add address=12.12.12.12 interface=lo
ip/route/add dst-address=6.6.6.6 gateway=100.13.3.2
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0012
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,ether2,lo
routing/bgp/template/add as=313 router-id=12.12.12.12 name=local13 address-families=ip
routing/bgp/connection/add name=R6-13 templates=local13 remote.address=6.6.6.6 remote.as=113 local.address=12.12.12.12 local.role=ebgp multihop=yes output.default-originate=always
routing/bgp/connection/ add name=R13-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=12.12.12.12 local.role=ibgp-rr-client nexthop-choice=force-self


R13-13
/tool/romon/set enabled=yes
system/identity/ set name=R13-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.3.2/24 interface=ether0
ip/address/add address=30.13.4.1/24 interface=ether1
ip/address/add address=13.13.13.13 interface=lo
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0013
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,ether0,lo
routing/bgp/template/ add name=local13 as=313 router-id=13.13.13.13 address-families=ip
routing/bgp/connection/ add name=R16-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=13.13.13.13 local.role=ibgp-rr-client nexthop-choice=force-self


R14-13
/tool/romon/set enabled=yes
system/identity/ set name=R14-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.4.2/24 interface=ether2
ip/address/add address=30.13.5.1/24 interface=ether1
ip/address/add address=100.13.4.1/24 interface=ether0
ip/address/add address=14.14.14.14 interface=lo
ip/route/add dst-address=7.7.7.7 gateway=100.13.4.2
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0014
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,ether2,lo
routing/bgp/template/add as=313 router-id=14.14.14.14 name=local13 address-families=ip
ip/firewall/address-list/add list=bgp_list address=0.0.0.0/0
routing/bgp/connection/ add name=R13-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=14.14.14.14 local.role=ibgp-rr-client nexthop-choice=force-self output.network=bgp_list
routing/bgp/connection/add name=R7-13 templates=local13 remote.address=7.7.7.7 remote.as=213 local.address=14.14.14.14 local.role=ebgp multihop=yes output.default-originate=always




R15-13
/tool/romon/set enabled=yes
system/identity/ set name=R15-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.5.2/24 interface=ether2
ip/address/add address=30.13.6.1/24 interface=ether1
ip/address/add address=100.13.5.1/24 interface=ether0
ip/address/add address=15.15.15.15 interface=lo
ip/route/add dst-address=8.8.8.8 gateway=100.13.5.2
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0015
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,ether2,lo
routing/bgp/template/add as=313 router-id=15.15.15.15 name=local13 address-families=ip
routing/bgp/connection/ add name=R13-13 templates=local13 remote.address=16.16.16.16 remote.as=313 local.address=15.15.15.15 local.role=ibgp-rr-client nexthop-choice=force-self
routing/bgp/connection/add name=R8-13 templates=local13 remote.address=8.8.8.8 remote.as=213 local.address=15.15.15.15 local.role=ebgp multihop=yes output.default-originate=always


R16-13
/tool/romon/set enabled=yes
system/identity/ set name=R16-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=30.13.6.2/24 interface=ether1
ip/address/add address=100.13.6.1/24 interface=ether0
ip/address/add address=16.16.16.16 interface=lo
ip/route/add dst-address=9.9.9.9 gateway=100.13.6.2
routing/isis/instance/add name=provider3 areas=49.0003 system-id=0000.0000.0016
routing/isis/interface-template/add levels=l1 instance=provider3 interfaces=ether1,lo 
routing/bgp/template/add as=313 router-id=16.16.16.16 name=local13 address-families=ip output.default-originate=always
routing/bgp/connection/add name=R9-13 templates=local13 remote.address=9.9.9.9 remote.as=213 local.address=16.16.16.16 local.role=ebgp multihop=yes
routing/bgp/connection/ add name=R10-13 templates=local13 remote.address=10.10.10.10 remote.as=313 local.address=16.16.16.16 local.role=ibgp-rr
routing/bgp/connection/ add name=R11-13 templates=local13 remote.address=11.11.11.11 remote.as=313 local.address=16.16.16.16 local.role=ibgp-rr
routing/bgp/connection/ add name=R12-13 templates=local13 remote.address=12.12.12.12 remote.as=313 local.address=16.16.16.16 local.role=ibgp-rr
routing/bgp/connection/ add name=R13-13 templates=local13 remote.address=13.13.13.13 remote.as=313 local.address=16.16.16.16 local.role=ibgp-rr
routing/bgp/connection/ add name=R14-13 templates=local13 remote.address=14.14.14.14 remote.as=313 local.address=16.16.16.16 local.role=ibgp-rr
routing/bgp/connection/ add name=R15-13 templates=local13 remote.address=15.15.15.15 remote.as=313 local.address=16.16.16.16 local.role=ibgp-rr
ip/dhcp-client/add interface=ether3
ip/firewall/nat/add chain=srcnat out-interface=ether3 action=masquerade


R17-13
/tool/romon/set enabled=yes
system/identity/ set name=R17-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=10.13.6.1/24 interface=ether2
ip/address/add address=10.13.7.1/24 interface=ether3
ip/address/add address=17.17.17.17/32 interface=lo
ip/dhcp-client/add interface=ether1 add-default-route=no
ip/dhcp-client/add interface=ether0 add-default-route=no
/ip/firewall/nat/add action=masquerade chain=srcnat out-interface=ether0
/ip/firewall/nat/add action=masquerade chain=srcnat out-interface=ether1
ip/pool/add name=pool ranges=10.13.6.2-10.13.6.254
ip/pool/add name=pool2 ranges=10.13.7.2-10.13.7.254
ip/dhcp-server/ add name=DHCP1 address-pool=pool interface=ether2
ip/dhcp-server/network/ add address=10.13.6.0/24 gateway=10.13.6.1
ip/dhcp-server/ add name=DHCP2 address-pool=pool2 interface=ether3
ip/dhcp-server/network/ add address=10.13.7.0/24 gateway=10.13.7.1
/interface/gre/add local-address=200.13.1.10 name=gre-tunnel1 remote-address=200.13.2.10
/interface/gre/add local-address=200.13.5.10 name=gre-tunnel2 remote-address=200.13.3.10
/ip/address/add address=10.13.11.3/24 interface=gre-tunnel1 network=10.13.11.0
/ip/address/add address=10.13.12.3/24 interface=gre-tunnel2 network=10.13.12.0
/ip/route/add dst-address=200.13.2.10/32 gateway=200.13.1.1
/ip/route/add dst-address=200.13.3.10/32 gateway=200.13.5.1 
/ip/route/add dst-address=0.0.0.0/0 gateway=10.13.11.5 check-gateway=ping distance=1
/ip/route/add dst-address=0.0.0.0/0 gateway=10.13.12.6 check-gateway=ping distance=2
/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/routing/ospf/interface-template/add area=ospf-area-1 interfaces=gre-tunnel2,gre-tunnel1,ether3,ether2




R18-13
/tool/romon/set enabled=yes
system/identity/ set name=R18-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=10.13.7.2/24 interface=ether0
ip/address/add address=10.13.8.1/24 interface=ether1
ip/address/add address=18.18.18.18 interface=lo
ip/pool/add name=pool ranges=10.13.8.2-10.13.8.254
ip/dhcp-server/ add name=DHCP1 address-pool=pool interface=ether1
ip/dhcp-server/network/ add address=10.13.8.0/24 gateway=10.13.8.1
/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/ip/dhcp-client/add interface=ether0
/routing/ospf/interface-template/add area=ospf-area-1 disabled=no interfaces=ether0,ether1


Firewall1-13
/tool/romon/set enabled=yes
system/identity/ set name=Firewall1-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=10.13.2.1/24 interface=ether3
ip/address/add address=10.13.1.1/24 interface=ether2
ip/address/add address=19.19.19.19 interface=lo
ip/dhcp-client/add interface=ether0 add-default-route=no
ip/dhcp-client/add interface=ether1 add-default-route=no
/ip/firewall/nat/add action=masquerade chain=srcnat out-interface=ether0
/interface/gre/add local-address=200.13.2.10 name=gre-tunnel1 remote-address=200.13.0.10
/interface/gre/add local-address=200.13.2.10 name=gre-tunnel2 remote-address=200.13.1.10
/ip/route/add dst-address=0.0.0.0/0 gateway=200.13.2.1 check-gateway=ping distance=1
/ip/route/add dst-address=0.0.0.0/0 gateway=10.13.1.2 check-gateway=ping distance=2
/ip/address/add address=10.13.9.1/24 interface=gre-tunnel1 network=10.13.9.0
/ip/address/add address=10.13.11.5/24 interface=gre-tunnel2 network=10.13.11.0
/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/routing/ospf/interface-template/add area=ospf-area-1 interfaces=gre-tunnel1,gre-tunnel2,ether2,ether3


Firewall2-13
/tool/romon/set enabled=yes
system/identity/ set name=Firewall2-13
interface/set ether1 name="ether0"
interface/set ether2 name="ether1"
interface/set ether3 name="ether2"
interface/set ether4 name="ether3"
ip/address/add address=10.13.1.2/24 interface=ether2
ip/address/add address=10.13.4.1/24 interface=ether3
ip/address/add address=20.20.20.20 interface=lo
ip/dhcp-client/add interface=ether0 add-default-route=no
/ip/firewall/nat/add action=masquerade chain=srcnat out-interface=ether0
/interface/gre/add local-address=200.13.3.10 name=gre-tunnel1 remote-address=200.13.4.10
/interface/gre/add local-address=200.13.3.10 name=gre-tunnel2 remote-address=200.13.5.10
/ip/address/add address=10.13.10.1/24 interface=gre-tunnel1 network=10.13.10.0
/ip/address/add address=10.13.12.6/24 interface=gre-tunnel2 network=10.13.12.0
/ip/route/add dst-address=0.0.0.0/0 gateway=200.13.3.1 check-gateway=ping distance=1
/ip/route/add ddst-address=0.0.0.0/0 gateway=10.13.1.1 check-gateway=ping distance=2
/routing/id/add name=id-1 select-dynamic-id=only-loopback
/routing/ospf/instance/add name=ospf-instance-1 router-id=id-1
/routing/ospf/area/add instance=ospf-instance-1 name=ospf-area-1
/routing/ospf/interface-template/add area=ospf-area-1 interfaces=gre-tunnel1,gre-tunnel2,ether2,ether3

S6:
conf t
interface Ethernet0/0
switchport access vlan 1013
switchport mode access
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/2
switchport access vlan 1013
switchport mode access
interface Vlan1013
ip address 10.13.15.3 255.255.0.0
no sh
exit
line vty 0 4
transport input telnet
login local
exit
username S6-13 privilege 15 secret 0 123123
ip route 0.0.0.0 0.0.0.0 10.13.15.1
exit
wr

S1:
conf t
interface Ethernet0/0
switchport access vlan 10
switchport mode access
interface Ethernet0/1
switchport access vlan 20
switchport mode access
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan1013
ip address 10.13.15.4 255.255.255.0
no sh
exit
line vty 0 4
transport input telnet
login local
exit
username S1-13 privilege 15 secret 0 123123
ip route 0.0.0.0 0.0.0.0 10.13.15.1
exit
wr



S2-13:
conf t
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/1
switchport access vlan 20
switchport mode access
interface Ethernet0/2
switchport access vlan 1013
switchport mode access
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet1/0
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet1/1
switchport access vlan 1013
switchport mode access
interface Vlan1013
ip address 10.13.18.4 255.255.255.0
no sh
exit
vlan 10
exit
vlan 20
exit
vlan 1013
exit  
line vty 0 4
transport input telnet
login local
exit
username S2-13 privilege 15 secret 0 123123
ip route 0.0.0.0 0.0.0.0 10.13.18.1
exit
wr



S3-13:
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/0
switchport access vlan 10
switchport mode access
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/2
switchport access vlan 1013
switchport mode access
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet1/0
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet1/1
switchport access vlan 1013
switchport mode access
interface Vlan1013
ip address 10.13.18.5 255.255.255.0
no sh
exit
line vty 0 4
transport input telnet
login local
exit
username S3-13 privilege 15 secret 0 123123
ip route 0.0.0.0 0.0.0.0 10.13.18.1
exit
wr


S4-13:
conf t
interface Ethernet0/0
switchport access vlan 20
switchport mode access
interface Ethernet0/1
switchport access vlan 10
switchport mode access
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan1013
ip address 10.13.16.3 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.13.16.1
line vty 0 4
transport input telnet
login local
exit
username S4-13 privilege 15 secret 0 123123
ip route 0.0.0.0 0.0.0.0 10.13.16.1
exit
wr


S5-13:
conf t
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/1
switchport access vlan 1013
switchport mode access
interface Ethernet0/2
switchport access vlan 1013
switchport mode access
interface Vlan1013
ip address 10.13.16.4 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.13.16.1
line vty 0 4
transport input telnet
login local
exit
username S5-13 privilege 15 secret 0 123123
ip route 0.0.0.0 0.0.0.0 10.13.16.1
exit
wr

